PopUpManager

Kind of class:class
Inherits from:none
Classpath:gfx.managers.PopUpManager
File last modified:Tuesday, 29 June 2010, 09:03:27
Create pop-up clips that reside in the application root, in order to be shown above all other content. PopUpManager can be used by gfx.controls.DropdownMenu, gfx.controls.Dialog, Tooltips, DragManager, and other components. Different types of pop-up content can use pre-determined container depths to ensure a logical order of pop-ups when multiple pop-ups are displayed at the same time. For instance, tooltips and dropdowns will always be higher than dialogs. Constants are provided for pre-determined depth containers, however any number can be passed to layer content in a custom manner.

Summary


Class methods

Class methods

centerPopUp

static function centerPopUp (
popUp:MovieClip) : Void

Center a pop-up in the stage.
Parameters:
popUp:
The pop-up to center

createPopUp

static function createPopUp (
context:MovieClip, linkage:String, initProperties:Object, relativeTo:MovieClip) : MovieClip

Create a pop-up clip.
Parameters:
context :
The context used to create the popup instance. Typically this would be the source for the popup.
linkage :
The linkage ID of the clip in the library.
initProperties:
MovieClip properties to be passed into the pop-up.
relativeTo :
Position the clip relative to a different MovieClip. Existing _x and _y properties in the initProperties object are converted to the global space using the relativeTo MovieClip as the scope.
Returns:
  • A reference to the created pop-up.

destroyPopUp

static function destroyPopUp (
popUp:MovieClip) : Void

Remove a currently open pop-up.
Parameters:
popUp:
The pop-up to remove.

movePopUp

static function movePopUp (
context:MovieClip, popUp:MovieClip, relativeTo:MovieClip, x:Number, y:Number) : Void

Move a PopUp relative to another MovieClip.
Parameters:
context:
The context used to create the popup instance. Typically this would be the source for the popup.
popUp :
The pop-up to move.
scope :
The scope to translate the coordinates from.
x :
The new x position.
y :
The new y position.